[INFO] cloning repository https://github.com/Wuzado/hn-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Wuzado/hn-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWuzado%2Fhn-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWuzado%2Fhn-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f4210e6173a41b5072bb33bc5d1c536969f88689
[INFO] checking Wuzado/hn-rs against master#9610dfe5a9a731ced1ea4923ecbd0c57fe367898 for beta-170-4
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWuzado%2Fhn-rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Wuzado/hn-rs on toolchain 9610dfe5a9a731ced1ea4923ecbd0c57fe367898
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Wuzado/hn-rs
[INFO] finished tweaking git repo https://github.com/Wuzado/hn-rs
[INFO] tweaked toml for git repo https://github.com/Wuzado/hn-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/Wuzado/hn-rs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c38ae326dce9a9363bfe306f41a3c1cdc793cd25d59155ed39285b4ade2e6ed7
[INFO] running `Command { std: "docker" "start" "-a" "c38ae326dce9a9363bfe306f41a3c1cdc793cd25d59155ed39285b4ade2e6ed7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c38ae326dce9a9363bfe306f41a3c1cdc793cd25d59155ed39285b4ade2e6ed7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c38ae326dce9a9363bfe306f41a3c1cdc793cd25d59155ed39285b4ade2e6ed7", kill_on_drop: false }`
[INFO] [stdout] c38ae326dce9a9363bfe306f41a3c1cdc793cd25d59155ed39285b4ade2e6ed7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c0cb19fd637a8a6330d05a9f4aeffaa8feb19d308e6bf797d8db3db0b4603c3b
[INFO] running `Command { std: "docker" "start" "-a" "c0cb19fd637a8a6330d05a9f4aeffaa8feb19d308e6bf797d8db3db0b4603c3b", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.117
[INFO] [stderr]    Compiling syn v1.0.86
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]     Checking pin-project-lite v0.2.8
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]     Checking smallvec v1.8.0
[INFO] [stderr]    Compiling pkg-config v0.3.24
[INFO] [stderr]     Checking once_cell v1.9.0
[INFO] [stderr]     Checking instant v0.1.12
[INFO] [stderr]     Checking lock_api v0.4.6
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]     Checking bytes v1.1.0
[INFO] [stderr]     Checking futures-sink v0.3.21
[INFO] [stderr]    Compiling quote v1.0.15
[INFO] [stderr]    Compiling futures-task v0.3.21
[INFO] [stderr]     Checking itoa v1.0.1
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]     Checking futures-io v0.3.21
[INFO] [stderr]     Checking slab v0.4.5
[INFO] [stderr]    Compiling indexmap v1.8.0
[INFO] [stderr]    Compiling serde_derive v1.0.136
[INFO] [stderr]    Compiling openssl v0.10.38
[INFO] [stderr]     Checking tracing-core v0.1.21
[INFO] [stderr]    Compiling httparse v1.5.1
[INFO] [stderr]     Checking matches v0.1.9
[INFO] [stderr]     Checking hashbrown v0.11.2
[INFO] [stderr]    Compiling serde v1.0.136
[INFO] [stderr]    Compiling signal-hook v0.3.13
[INFO] [stderr]    Compiling native-tls v0.2.8
[INFO] [stderr]     Checking tinyvec v1.5.1
[INFO] [stderr]     Checking percent-encoding v2.1.0
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]     Checking form_urlencoded v1.0.1
[INFO] [stderr]     Checking http v0.2.6
[INFO] [stderr]     Checking unicode-bidi v0.3.7
[INFO] [stderr]    Compiling encoding_rs v0.8.30
[INFO] [stderr]     Checking ryu v1.0.9
[INFO] [stderr]     Checking tower-service v0.3.1
[INFO] [stderr]    Compiling serde_json v1.0.78
[INFO] [stderr]     Checking unicode-segmentation v1.9.0
[INFO] [stderr]     Checking tracing v0.1.29
[INFO] [stderr]     Checking ipnet v2.3.1
[INFO] [stderr]    Compiling openssl-sys v0.9.72
[INFO] [stderr]     Checking cassowary v0.3.0
[INFO] [stderr]     Checking unicode-width v0.1.9
[INFO] [stderr]     Checking signal-hook-registry v1.4.0
[INFO] [stderr]     Checking mio v0.7.14
[INFO] [stderr]     Checking num_cpus v1.13.1
[INFO] [stderr]     Checking socket2 v0.4.4
[INFO] [stderr]     Checking unicode-normalization v0.1.19
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking signal-hook-mio v0.2.1
[INFO] [stderr]     Checking crossterm v0.22.1
[INFO] [stderr]     Checking idna v0.2.3
[INFO] [stderr]     Checking tui v0.17.0
[INFO] [stderr]     Checking http-body v0.4.4
[INFO] [stderr]     Checking url v2.2.2
[INFO] [stderr]    Compiling futures-macro v0.3.21
[INFO] [stderr]    Compiling tokio-macros v1.7.0
[INFO] [stderr]     Checking tokio v1.16.1
[INFO] [stderr]     Checking futures-executor v0.3.21
[INFO] [stderr]     Checking futures v0.3.21
[INFO] [stderr]     Checking tokio-util v0.6.9
[INFO] [stderr]     Checking tokio-native-tls v0.3.0
[INFO] [stderr]     Checking h2 v0.3.11
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking hyper v0.14.16
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.9
[INFO] [stderr]     Checking hn-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `items` in this scope
[INFO] [stdout]  --> src/middleware.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 |     Ok(Some(items))
[INFO] [stdout]   |             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `get_beststories`, `get_item`
[INFO] [stdout]  --> src/middleware.rs:1:18
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::api::{get_beststories, get_item};
[INFO] [stdout]   |                  ^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `items` in this scope
[INFO] [stdout]  --> src/middleware.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 |     Ok(Some(items))
[INFO] [stdout]   |             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_item`
[INFO] [stdout]  --> src/middleware.rs:1:35
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::api::{get_beststories, get_item};
[INFO] [stdout]   |                                   ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `read_db` in this scope
[INFO] [stdout]   --> src/views.rs:36:20
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let pet_list = read_db().expect("can fetch pet list");
[INFO] [stdout]    |                    ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `read_db` in this scope
[INFO] [stdout]   --> src/views.rs:36:20
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let pet_list = read_db().expect("can fetch pet list");
[INFO] [stdout]    |                    ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hn-rs` (bin "hn-rs") due to 3 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/middleware.rs:14:24
[INFO] [stdout]    |
[INFO] [stdout] 14 |         get_n_items(5, get_beststories());
[INFO] [stdout]    |         -----------    ^^^^^^^^^^^^^^^^^ expected `&dyn FnOnce() -> Result<..., ...>`, found future
[INFO] [stdout]    |         |
[INFO] [stdout]    |         arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/middleware.rs:4:14
[INFO] [stdout]    |
[INFO] [stdout] 4  | pub async fn get_n_items(n: u32, func: &dyn FnOnce() -> Result<Vec<i32>, reqwest::Error>) -> Result<Option<Vec<structs::Item>>, Box<dyn s...
[INFO] [stdout]    |              ^^^^^^^^^^^         -------------------------------------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hn-rs` (bin "hn-rs" test) due to 4 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "c0cb19fd637a8a6330d05a9f4aeffaa8feb19d308e6bf797d8db3db0b4603c3b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c0cb19fd637a8a6330d05a9f4aeffaa8feb19d308e6bf797d8db3db0b4603c3b", kill_on_drop: false }`
[INFO] [stdout] c0cb19fd637a8a6330d05a9f4aeffaa8feb19d308e6bf797d8db3db0b4603c3b
